package com.hdoit.apollo.logical.inventory.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.inventory.model.Adjustment;
import com.hdoit.apollo.logical.inventory.model.Inventory;
import com.hdoit.apollo.logical.viewmodel.stock.InventorySearch;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:42:56
 * @comment
 */
@Repository(value="inventoryMapper")
public interface InventoryMapper extends IMapper<Inventory>{

	public Inventory queryModelById(@Param("key") String key);

	public Adjustment queryAdjustmentById(@Param("key") String key);

	public List<Inventory> queryListList(@Param("search") InventorySearch search,@Param("pager") PagerModel pagerModel);

	public int queryCountList(@Param("search")InventorySearch search);

}
